package com.liang.maogouyuyin.widget.lzy;

import android.content.Context;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.lxj.xpopupext.popup.CommonPickerPopup;
import java.lang.reflect.Field;

public class CommonPicker extends CommonPickerPopup {
    public CommonPicker(@NonNull Context context) {
        super(context);

    }

    @Override
    protected void onCreate() {
        super.onCreate();
        try {
            Field cancelField = getClass().getSuperclass().getDeclaredField("btnCancel");
            Field confirmField = getClass().getSuperclass().getDeclaredField("btnConfirm");
            cancelField.setAccessible(true);
            confirmField.setAccessible(true);

            TextView btnCancel = (TextView) cancelField.get(this);
            TextView btnConfirm = (TextView) confirmField.get(this);

            btnCancel.setText("取消");
            btnConfirm.setText("确定");
        } catch (NoSuchFieldException | IllegalAccessException e) {
            e.printStackTrace();
        }

    }

    public void ss(){



    }

}
